package edu.ycu.aladdin.web.vo;

import edu.ycu.aladdin.web.dto.User;
import lombok.Data;

import java.util.UUID;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 1.0
 */
@Data
public class UserVO {

    private String sessionid;

    private String username;

//    private String headimg;

    public UserVO(User user) {
        this.username = user.getName();
        this.sessionid = UUID.randomUUID().toString();
    }
}
